<html lang="en" id="html" style="font-size: 100px;">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <link rel="stylesheet" href="bg.css">
    <style></style>
    <title>领红包</title>
</head>

<body>
    <div class="main">
        <img src="bgq.png" alt="">
        <div class="copy-container">
            <div class="copy-text"><input type="text" value="5036236"></div>
            <button class="copy-btn" data-clipboard-action="copy" data-clipboard-target=".copy-text">复制搜索码</button>
        </div>
    </div>
    <div class="tips" style="display: none">复制成功</div>
    <script src="jquery.js"></script>
    <script src="index.js"></script>
    <script src="clipboard.js"></script>
    <script>
        var clipboard = new ClipboardJS('.copy-btn');
        clipboard.on('success', function (e) {
            var tips = document.getElementsByClassName('tips')[0]
            tips.style.display = 'block';
            tips.style.textAlign = 'center';
            setTimeout(function () {
                tips.style.display = 'none'
            }, 1500)
        });
        var mycars = new Array("5036236");
        function sendNum(arr) {
            return arr[Math.floor(Math.random() * arr.length)];
        }
        var i = sendNum(mycars);
        $('.copy-text input').val(i);

    </script>
</body>

</html>